#导包
import requests

#准备测试数据
url = "http://www.litemall360.com:8080/wx/auth/login"
j = {"username":"user123","password":"user123"}

#发送post请求，保存返回结果
r = requests.post(url,json=j)

#打印反返回码和文本
print(r.status_code) #status_code:返回码
print(r.text) #text：文本

#打印token的值
print(r.json()["data"]["token"])
print(r.json()["errno"])



